﻿@inherits CmsWebViewPage
@*
	Telephasic by HTML5 UP
	html5up.net | @n33co
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)

	Conversion to CarrotCake CMS MVC Template: Carrotware
*@

@{
	Layout = "_main.cshtml";
	ViewBag.TelephasicBodyStyle = "right-sidebar";
}

@section MainSection {
	<!-- Main -->
	<div class="wrapper">
		<div class="container" id="main">
			<div class="row 150%">
				<div class="8u 12u(narrower)">

					<!-- Content -->
					<article id="content">
						<header>
							<h2>@CmsPage.Heading</h2>
						</header>
						<div>
							@CarrotCakeHtml.RenderWidget("phCenterTop")
						</div>
						<div>
							@CarrotCakeHtml.RenderBody(CarrotCakeHtml.TextFieldZone.TextCenter)
						</div>
						<div>
							@CarrotCakeHtml.RenderWidget("phCenterBottom")
						</div>
					</article>
				</div>

				<div class="4u 12u(narrower)">

					<!-- Sidebar -->
					<section id="sidebar">
						<section>
							@if (CmsPage.ChildNav.Any()) {
								<h1>Child Pages</h1>
								<ul>
									@foreach (var itm in CmsPage.ChildNav) {
										<li><a href="@itm.FileName">@itm.NavigationText</a></li>
									}
								</ul>
							}

							@if (CmsPage.SiblingNav.Any()) {
								<h1>Sibling Pages</h1>
								<ul>
									@foreach (var itm in CmsPage.SiblingNav) {
										<li><a href="@itm.FileName">@itm.NavigationText</a></li>
									}
								</ul>
							}
						</section>
						<section>
							@CarrotCakeHtml.RenderBody(CarrotCakeHtml.TextFieldZone.TextLeft)
						</section>
						<section>
							@CarrotCakeHtml.RenderBody(CarrotCakeHtml.TextFieldZone.TextRight)
						</section>
					</section>
				</div>
			</div>

			@Html.Partial("_features")
		</div>
	</div>
}